const Router = require('koa-router')
const DataStatisticCon = require('../controller/DataStatistic/DataStatisticSerCon')
const StatisticalTableDataCon = require('../controller/StatisticalTableData/StatisticalTableDataCon')
const DataStatisticRouter = new Router()

DataStatisticRouter.get('/getDataStatistic', DataStatisticCon.getUserIpLocation)
//统计用户性别比例
DataStatisticRouter.get('/StatisticalSex', DataStatisticCon.StatisticalSex)
//查询访问量
DataStatisticRouter.post('/getDataPageViewCount', StatisticalTableDataCon.getDataPageViewCount)

module.exports = DataStatisticRouter
